﻿<!DOCTYPE html>
<html lang="zh">

<head resource>
    <include file="../inc/meta.inc" />
    <title>参数管理</title>

</head>

<body>
    <div id="vapp" v-cloak>
        <div class="toolsbar">
            <btngroup show="新增" ref='btngroup' @delete="deleteData" path="SystemParaModify" width="600" height="400"
                idkey='Sys_Id'></btngroup>
            <query_panel>
                <el-form-item label="">
                    <el-input v-model="search" style="width:160px" clearable placeholder="查询">
                        <i class="el-icon-search el-input__icon" slot="suffix"> </i>
                    </el-input>
                </el-form-item>
            </query_panel>
        </div>
        <template>
            <el-table ref="datatable" :data="datas" tooltip-effect="dark" style="width: 100%"
                :row-class-name="data=>{return rowshow(data.row) ? 'show' : 'hide';}"
                @row-dblclick="row=>$refs.btngroup.modifyrow(row)" row-key="Sys_Id">
                <el-table-column type="index" width="50">
                </el-table-column>
                <el-table-column label="参数名" header-align="left">
                    <template slot-scope="scope">
                        <span v-html='showsearch(scope.row.Sys_Key,search)'></span>
                    </template>
                </el-table-column>
                <el-table-column label="参数值" header-align="left">
                    <template slot-scope="scope">
                        <div class="value" v-html='showsearch(clearhtml(scope.row.Sys_Value,100),search)'></div>
                    </template>
                </el-table-column>
                <el-table-column label="单位" width="80">
                    <template slot-scope="scope">
                        <span v-html='scope.row.Sys_Unit'></span>
                    </template>
                </el-table-column>
                <el-table-column label="说明" header-align="left">
                    <template slot-scope="scope">
                        <div class="value" v-html='showsearch(clearhtml(scope.row.Sys_ParaIntro,100),search)'>
                        </div>
                    </template>
                </el-table-column>
                <el-table-column label="操作" show-overflow-tooltip width="120">
                    <template slot-scope="scope">

                        <el-button-group v-show="loadingid!=scope.row.EGrp_Id">
                            <el-link type="primary" plain icon="el-icon-edit"
                                @click='$refs.btngroup.modifyrow(scope.row)'>
                                修改</el-link>
                            <el-popconfirm title="确定删除吗？" @confirm="$refs.btngroup.delete(scope.row)">
                                <el-link type="danger" plain icon="el-icon-delete" slot="reference">删除</el-link>
                            </el-popconfirm>
                        </el-button-group>
                    </template>
                </el-table-column>
            </el-table>

        </template>

    </div>
</body>

</html>